import request from '@/utils/request'

export const getDepartments = function() {
  return request.get('/company/department')
}
export const SimpleEmployee = function() {
  return request.get('/sys/user/simple')
}
export const addSubject = function(form) {
  return request.post('/company/department', form)
}
export const deleteDepartment = function(id) {
  return request.delete('/company/department/' + id)
}
export const departmentInfo = function(id) {
  return request.get('/company/department/' + id)
}
export const editSubject = function(data) {
  return request.put('/company/department/' + data.id, data)
}
